package ejercicios;

import interfaces.tests.GetRequiredNumberOfBits;

public class GetRequiredNumberOfBitsImpl implements GetRequiredNumberOfBits {
	public int getRequiredNumberOfBits(int N) {
		if (N<0){
			return 0;
		}
		return Integer.toBinaryString(N).length();
    }
}